package org.example;

public class MyThread extends Thread{
    public MyThread() {}
    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
         /*   try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }*/

            System.out.println(Thread.currentThread().getName() + "---" + i);
        }
    }
}
